/**
 * 
 */
package com.wsd.dao;

import java.util.List;

import com.wsd.bean.ProductRank;
import com.wsd.bean.Products;

/**
 * @author TuZiJun
 *
 */
public interface ProductRankDaoInterface {

	public void save(ProductRank transientInstance);

	public void delete(ProductRank persistentInstance);

	public ProductRank findById(java.lang.Integer id);

	public List<ProductRank> findAll();

	/**
	 * @param id
	 * @param model
	 * @return
	 */
	public boolean checkExist(int id, Short model);

	/**
	 * @param model
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<Products> rankProducts(Short model, int start, int limit);

	/**
	 * @param model
	 * @return
	 */
	public int rankProductsCount(Short model);

	/**
	 * @param id
	 * @param model
	 */
	public void removeRank(int id, Short model);
}
